


project , original("../data_input/bowen_green/legprof-components.v1.1.1.dta")


	**********
	** 
	** 
	** 
	**********	
	
	
	use "../data_input/bowen_green/legprof-components.v1.1.1.dta", clear
	drop state
	rename stateabv state
	
	gen salary_per_day = salary_real/t_slength

	sort year mds1
	bys year: gen rank_prof = (_n-1)/45	if mds1!=.
	
	save "../data_output/stleg_prof.dta", replace
	
project, creates("../data_output/stleg_prof.dta")	
	

